﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Demo.ServiceContract.Client.OperationOverloading.ServiceReference;
using Demo.ServiceContract.Client.ProxyChaining.ServiceReference;
using System.ServiceModel.Description;

namespace Demo.ServiceContract.Client
{
    class Program
    {
        static void Main(string[] args)
        {
            //#region Demo operation overloading
            //CalculatorClient proxy = new CalculatorClient();
            //double doubleResult = proxy.Add(1.1d, 2.2d);
            //int intResult = proxy.Add(1, 2);

            //Console.WriteLine("Double result:{0}", doubleResult);
            //Console.WriteLine("Int result:{0}", intResult);
            //Console.Read();
            //#endregion

            //#region Demo proxy chaining 
            //    AClient clientA = new AClient();
            //    AClient clientB = new BClient();
            //    BClient clientC = new BClient();

            //    Console.WriteLine(clientA.MethodA());
            //    Console.WriteLine(clientB.MethodA());
            //    Console.WriteLine(clientC.MethodB());
            //    Console.ReadKey();
            //#endregion
         
        }
    }
}
